#conding=utf-8
import os
export = []
for root, dirs, files in os.walk('/home/wwq/gopython'):
    export.append('\n %s;%s%s' % (root, dirs, files))
open('mycd3.cdc', 'w').write(''.join(export))
